package com.dingwei.superiordiary.bean;

import com.dingwei.superiordiary.base.MyBaseBean;
import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

/**
 * Created time 2018/2/24.
 * Creator 南柯一梦丶 on
 * Personal signature 余生还长 何必慌张
 * Page description :
 */

public class CommodityDetailsBean extends MyBaseBean implements Serializable{
    /**
     * data : {"id":"13","name":"测试商品","icon":"http://139.199.211.51/yprj/uploads/product/13/icon.png?r=755016","merchant_id":"0","video":"http://139.199.211.51/yprj/uploads/product/13/video/18020903590283052.mp4?r=76770","image":[{"og":"http://139.199.211.51/yprj/uploads/product/13/imgs/18022303242097138.jpg?r=44651","sm":"http://139.199.211.51/yprj/uploads/product/13/imgs/sm/18022303242097138.jpg?r=44651"},{"og":"http://139.199.211.51/yprj/uploads/product/13/imgs/18022303242316400.jpg?r=22648","sm":"http://139.199.211.51/yprj/uploads/product/13/imgs/sm/18022303242316400.jpg?r=22648"}],"is_integral":"1","integral":0,"price":2,"freight":12,"option":["1","2","3"],"sales_volume":"0","stock":21,"description":"<p><img src=\"http://139.199.211.51/yprj/uploads/product/13/description/1518162846.jpg\" title=\"1518162846.jpg\" _src=\"http://139.199.211.51/yprj/uploads/product/13/description/1518162846.jpg\" alt=\"500fd9f9d72a6059099ccd5a2334349b023bbae5 (1).jpg\"/><\/p>","status":"2","viewed":133,"likes":1,"collection":1,"icon_og":"uploads/product/13/icon.png?r=755016","is_liked":1,"is_collectioned":1,"comment":[{"id":"16","portrait":"http://139.199.211.51/yprj/uploads/consumer/34//portrait.jpeg?r=29886","nickname":"刘小棚","content":"测试","likes":"1","addtime":"2018-02-23 17:28","sub":[],"more":1,"is_liked":1},{"id":"15","portrait":"http://139.199.211.51/yprj/uploads/consumer/34//portrait.jpeg?r=29886","nickname":"刘小棚","content":"测试和先进学校坚持坚持坚持坚持看","likes":"0","addtime":"2018-02-23 17:26","sub":[{"id":"19","portrait":"http://139.199.211.51/yprj/uploads/consumer/34//portrait.jpeg?r=29886","nickname":"刘小棚","content":"想减肥就减肥反馈反馈反馈都ixjdjfjjfjfjj开心就像那些能否放假放假参加坚持坚持减肥减肥减肥就如此健康才坚持就坚持","addtime":"2018-02-23 17:29:43"}],"more":1,"is_liked":1},{"id":"14","portrait":"http://139.199.211.51/yprj/uploads/consumer/34//portrait.jpeg?r=29886","nickname":"刘小棚","content":"测试和先进学校坚持坚持坚持坚持看","likes":"0","addtime":"2018-02-23 17:26","sub":[{"id":"18","portrait":"http://139.199.211.51/yprj/uploads/consumer/34//portrait.jpeg?r=29886","nickname":"刘小棚","content":"大家看得出空空泛泛卡夫卡开发","addtime":"2018-02-23 17:29:34"}],"more":1,"is_liked":1}],"help":"0px; line-height: 24px; color: rgb(102, 102, 102); font-size: 14px; font-family: arial, 微软雅黑; white-space: normal; background-color: rgb(255, 255, 255);\"><span style=\"font-family: 微软雅黑, &#39;Microsoft YaHei&#39;; font-size: 16px; color: rgb(0, 0, 0);\">经过10年的积累，鼎维科技已是一支由50余位技术专家、管理精英和策略人才组成的兼具实力与经验的专业团队。200余家国内外知名企业客户正在使用鼎维科技的\u201c技术价值\u201d服务，累计服务客户超过1450家。凭借出色的业务成就，鼎维科技持续获得市场的信赖、客户的肯定、行业的褒奖。<\/span><\/p><p><br/><\/p>"}
     */

    public DataBean data;

    public static class DataBean implements Serializable{

        public String id;
        public String name;
        public String icon;
        public String merchant_id;
        public String video;
        public String is_integral;
        public int integral;
        public int sales_volume;
        public double price;
        public double freight;
        public int stock;
        public String description;
        @SerializedName("status")
        public String statusX;
        public int viewed;
        public int likes;
        public int collection;
        public String icon_og;
        public int is_liked;
        public int is_collectioned;
        public String help;
        public String links;
        public String dowload_app_link;
        public List<ImageBean> image;
        public List<OptionBeanX> option;
        public List<CommentBean> comment;
        public List<VariantBean> variant;
        public DefaultAddressBean default_address;


        public static class DefaultAddressBean implements Serializable{
            /**
             * id : 42
             * name : 小哦
             * mobile : 13258964578
             * province : 甘肃
             * city : 甘南
             * county : 迭部县
             * address : 来咯哦破
             * is_default : 2
             * province_id : 5
             * city_id : 65
             * county_id : 629
             */

            public String id;
            public String name;
            public String mobile;
            public String province;
            public String city;
            public String county;
            public String address;
            public String is_default;
            public String province_id;
            public String city_id;
            public String county_id;
        }

        public static class ImageBean implements Serializable{
            /**
             * og : http://139.199.211.51/yprj/uploads/product/13/imgs/18022303242097138.jpg?r=44651
             * sm : http://139.199.211.51/yprj/uploads/product/13/imgs/sm/18022303242097138.jpg?r=44651
             */

            public String og;
            public String sm;
        }

        public static class CommentBean implements Serializable{
            /**
             * id : 16
             * portrait : http://139.199.211.51/yprj/uploads/consumer/34//portrait.jpeg?r=29886
             * nickname : 刘小棚
             * content : 测试
             * likes : 1
             * addtime : 2018-02-23 17:28
             * sub : []
             * more : 1
             * is_liked : 1
             */

            public String id;
            public String portrait;
            public String nickname;
            public String content;
            public int likes;
            public String addtime;
            public int more;
            public int is_liked;
            public List<SubBean> sub;
            public int buy_status;
            public String product_option;

            public static class SubBean implements Serializable{

                public String id;
                public String portrait;
                public String nickname;
                public String content;
                public int own;
                public String addtime;
            }
        }

        public static class OptionBeanX implements Serializable{
            /**
             * label : 上衣
             * option : [{"name":"S","quantity":"10","price":"0.01","id":0},{"name":"M","quantity":9,"price":"0.01","id":1},{"name":"L","quantity":"10","price":"0.01","id":2}]
             * id : 0
             */

            public String label;
            public String id;
            public boolean isSelect;
            public List<OptionBean> option;

            public static class OptionBean implements Serializable{
                /**
                 * name : S
                 * quantity : 10
                 * price : 0.01
                 * id : 0
                 */

                public String name;
                public int quantity;
                public double price;
                public String id;
                public boolean isSelect;
            }
        }
        public static class VariantBean implements Serializable{
            /**
             * property : ["ML","黑色","23"]
             * price : 110
             * quantity : 10
             */

            public double price;
            public int quantity;
            public List<String> property;

            public double getPrice() {
                return price;
            }

            public void setPrice(double price) {
                this.price = price;
            }

        }
    }
}
